package framework.converters;

import framework.IConvertFunction;

/**
 *
 * Converter class that converts feet to meters
 */
public class ConvertFtMt implements IConvertFunction {

    /**
     *
     * @param measure a measurement in feet
     * @return the measurement converted to meters
     *
     * Converts feet to meters
     */
    public long convert(long measure) {
        double val = Double.longBitsToDouble(measure);
        val = val / 3.281;

        return Double.doubleToLongBits(val);
    }
}
